package com.manager.car.service;

import java.util.List;

import com.manager.car.dao.IDepartmentInfoDao;
import com.manager.car.po.DepartmentInfo;


public class DepartmentInfoServiceImpl implements IDepartmentInfoService{
	
private IDepartmentInfoDao departmentInfoDao;
	
public IDepartmentInfoDao getDepartmentInfoDao() {
	return departmentInfoDao;
}

public void setDepartmentInfoDao(IDepartmentInfoDao departmentInfoDao) {
	this.departmentInfoDao = departmentInfoDao;
}

	public DepartmentInfo queryId(Integer id) {
		return departmentInfoDao.queryId(id);
	}

	public List<DepartmentInfo> queryAll() {
		return departmentInfoDao.queryAll();
	}

	public void add(DepartmentInfo dti) {
		departmentInfoDao.save(dti);
	}

	public void delete(Integer id) {
			departmentInfoDao.delete(id);
	}

	public void update(DepartmentInfo dti) {
		departmentInfoDao.update(dti);
	}
}
